package app

import (
	"chatgpt/controller/father"
	"chatgpt/helper"
	"chatgpt/services"
	"github.com/gin-gonic/gin"
)

// 支付回调url
func PayHandle(ctx *gin.Context) {
	param := map[string]any{
		"SerialNo": father.RawAny(ctx, "SerialNo"),
		"PlatNo":   father.RawAny(ctx, "PlatNo"),
		"Amount":   father.RawAny(ctx, "Amount"),
		"PayType":  father.RawAny(ctx, "Method"),
	}
	mc := services.PaySrv.Payment.PayAction(param)
	helper.Count(ctx, mc, nil)
}

// 取消订单
func CancelHandle(ctx *gin.Context) {

}

// 充值记录表
func PayRechargeListHandle(ctx *gin.Context) {

}

// 花费列表
func CostListHandle(ctx *gin.Context) {

}

// 花费
//func CostHandle(ctx *gin.Context) {
//
//}
